package week3.day19;

import java.util.Scanner;

/**
 * @Author fengzihao
 * @Date 2024-05-03 20:07
 */
public class IsSymmetry {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String sc = scanner.nextLine();
        StringBuffer stringBuffer = new StringBuffer(sc);
        stringBuffer.reverse();
        if (sc.equals(stringBuffer.toString()))
            System.out.println("这个字符串是对称的");
        else
            System.out.println("这个字符串是不对称的");
    }
}
